package com.yyplatform.admin.platform.message.model.entity;

import com.yyplatform.admin.infra.model.entity.BaseEntity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Data;

@Data
@Entity
@Table(name = "sys_email_his")
public class SysEmailHisEntity extends BaseEntity {

    @Column(name = "email_template_id", nullable = false, columnDefinition = "bigint(20) COMMENT '邮件配置ID'")
    private Long emailTemplateId;

    @Column(name = "sender", nullable = false, columnDefinition = "varchar(255) COMMENT '发件人'")
    private String sender;

    @Column(name = "receiver", nullable = false, columnDefinition = "varchar(255) COMMENT '收件人'")
    private String receiver;

    @Column(name = "copyto", nullable = false, columnDefinition = "varchar(255) COMMENT '抄送人'")
    private String copyto;

    @Column(name = "subject", nullable = false, columnDefinition = "varchar(255) COMMENT '主题'")
    private String subject;

    @Column(name = "status", nullable = false, columnDefinition = "int(11) COMMENT '状态'")
    private Integer status;


}


